<html>
    <?php
    include "logado/conectar.php";

    mysql_set_charset('utf8');
    ini_set('default_charset', 'UTF-8');
    ?>
    <head>
        <meta charset="utf-8"/>
        <title>Escalação</title>
        <link rel="stylesheet" type="text/css" href="css/escalacao.css" />
        <script src="js/jquery-1.10.2.js"></script>
    </head>

    <script>
    </script>

    <body>
        <div id="arealogo">
            <h2>Escalação</h2>
        </div>
        <div id="cadastro">
            <form name="frm" action="index.php" method="POST">
                <table>
                    <tr>
                        <td>
                            <label>Nome do Jogador:</label>
                        </td>
                        <td>
                            <label>Nº da Camisa:</label><br>
                        </td>
                        <td>
                            <label>Posição</label>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 250px;">
                            <input type="text" size="30" name="rua" id="nome" size="25" />
                        </td>
                        <td style="width: 50px;">
                            <input type="text" name="numero" id="numero" size="5" />
                        </td>
                        <td >
                            <select>
                                <option>--------------<option>
                                <?php
                                    $posicao = mysql_query("SELECT * from posicao", $con);
                                    while ($linha = mysql_fetch_array($posicao)) {
                                        echo "<option value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        if ($linha['idPosicao'] == 6) {
                                            echo "<option selected='true' value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        }
                                    }
                                ?>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 250px;">
                            <input type="text" size="30" name="rua" id="nome" size="25" />
                        </td>
                        <td style="width: 50px;">
                            <input type="text" name="numero" id="numero" size="5" />
                        </td>
                        <td >
                            <select>
                                <option>--------------<option>
                                <?php
                                    $posicao = mysql_query("SELECT * from posicao", $con);
                                    while ($linha = mysql_fetch_array($posicao)) {
                                        echo "<option value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        if ($linha['idPosicao'] == 6) {
                                            echo "<option selected='true' value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        }
                                    }
                                ?>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 250px;">
                            <input type="text" size="30" name="rua" id="nome" size="25" />
                        </td>
                        <td style="width: 50px;">
                            <input type="text" name="numero" id="numero" size="5" />
                        </td>
                        <td >
                            <select>
                                <option>--------------<option>
                                <?php
                                    $posicao = mysql_query("SELECT * from posicao", $con);
                                    while ($linha = mysql_fetch_array($posicao)) {
                                        echo "<option value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        if ($linha['idPosicao'] == 6) {
                                            echo "<option selected='true' value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        }
                                    }
                                ?>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 250px;">
                            <input type="text" size="30" name="rua" id="nome" size="25" />
                        </td>
                        <td style="width: 50px;">
                            <input type="text" name="numero" id="numero" size="5" />
                        </td>
                        <td >
                            <select>
                                <option>--------------<option>
                                <?php
                                    $posicao = mysql_query("SELECT * from posicao", $con);
                                    while ($linha = mysql_fetch_array($posicao)) {
                                        echo "<option value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        if ($linha['idPosicao'] == 6) {
                                            echo "<option selected='true' value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        }
                                    }
                                ?>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 250px;">
                            <input type="text" size="30" name="rua" id="nome" size="25" />
                        </td>
                        <td style="width: 50px;">
                            <input type="text" name="numero" id="numero" size="5" />
                        </td>
                        <td >
                            <select>
                                <option>--------------<option>
                                <?php
                                    $posicao = mysql_query("SELECT * from posicao", $con);
                                    while ($linha = mysql_fetch_array($posicao)) {
                                        echo "<option value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        if ($linha['idPosicao'] == 6) {
                                            echo "<option selected='true' value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        }
                                    }
                                ?>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 250px;">
                            <input type="text" size="30" name="rua" id="nome" size="25" />
                        </td>
                        <td style="width: 50px;">
                            <input type="text" name="numero" id="numero" size="5" />
                        </td>
                        <td >
                            <select>
                                <option>--------------<option>
                                <?php
                                    $posicao = mysql_query("SELECT * from posicao", $con);
                                    while ($linha = mysql_fetch_array($posicao)) {
                                        echo "<option value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        if ($linha['idPosicao'] == 6) {
                                            echo "<option selected='true' value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        }
                                    }
                                ?>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 250px;">
                            <input type="text" size="30" name="rua" id="nome" size="25" />
                        </td>
                        <td style="width: 50px;">
                            <input type="text" name="numero" id="numero" size="5" />
                        </td>
                        <td >
                            <select>
                                <option>--------------<option>
                                <?php
                                    $posicao = mysql_query("SELECT * from posicao", $con);
                                    while ($linha = mysql_fetch_array($posicao)) {
                                        echo "<option value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        if ($linha['idPosicao'] == 6) {
                                            echo "<option selected='true' value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        }
                                    }
                                ?>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 250px;">
                            <input type="text" size="30" name="rua" id="nome" size="25" />
                        </td>
                        <td style="width: 50px;">
                            <input type="text" name="numero" id="numero" size="5" />
                        </td>
                        <td >
                            <select>
                                <option>--------------<option>
                                <?php
                                    $posicao = mysql_query("SELECT * from posicao", $con);
                                    while ($linha = mysql_fetch_array($posicao)) {
                                        echo "<option value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        if ($linha['idPosicao'] == 6) {
                                            echo "<option selected='true' value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        }
                                    }
                                ?>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 250px;">
                            <input type="text" size="30" name="rua" id="nome" size="25" />
                        </td>
                        <td style="width: 50px;">
                            <input type="text" name="numero" id="numero" size="5" />
                        </td>
                        <td >
                            <select>
                                <option>--------------<option>
                                <?php
                                    $posicao = mysql_query("SELECT * from posicao", $con);
                                    while ($linha = mysql_fetch_array($posicao)) {
                                        echo "<option value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        if ($linha['idPosicao'] == 6) {
                                            echo "<option selected='true' value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        }
                                    }
                                ?>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 250px;">
                            <input type="text" size="30" name="rua" id="nome" size="25" />
                        </td>
                        <td style="width: 50px;">
                            <input type="text" name="numero" id="numero" size="5" />
                        </td>
                        <td >
                            <select>
                                <option>--------------<option>
                                <?php
                                    $posicao = mysql_query("SELECT * from posicao", $con);
                                    while ($linha = mysql_fetch_array($posicao)) {
                                        echo "<option value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        if ($linha['idPosicao'] == 6) {
                                            echo "<option selected='true' value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        }
                                    }
                                ?>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 250px;">
                            <input type="text" size="30" name="rua" id="nome" size="25" />
                        </td>
                        <td style="width: 50px;">
                            <input type="text" name="numero" id="numero" size="5" />
                        </td>
                        <td >
                            <select>
                                <option>--------------<option>
                                <?php
                                    $posicao = mysql_query("SELECT * from posicao", $con);
                                    while ($linha = mysql_fetch_array($posicao)) {
                                        echo "<option value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        // if ($linha['idPosicao'] == 6) {
                                            // echo "<option selected='true' value=" . $linha['idPosicao'] . ">" . $linha['dscPosicao'] . "</option>";
                                        // }
                                    }
                                ?>
                            </select>
                        </td>
                    </tr>
                </table>
                <br/><br/>

                <div id="botoes">
                    <input type="submit" name="botao" value="Escalar" />
                    <input type="button" name="botao" value="Voltar" />
                </div>
            </form>
        </div>
    </body>
</html>


